package lab01;

/**
 * Created by 唐苗苗 on 2017/12/30.
 */
public class Test13 {
    public static void main(String[] args){
    for(int i=1; i<=9; i++){
        for(int j=0; j<=9; j++){
            for(int k=0; k<=9; k++){
                if(i*i*i+j*j*j+k*k*k == 100*i+10*j+k) {

                    System.out.print(i * 100 + j * 10 + k + " ");
                }
            }
        }
    }
}

}
